package com.study.reactor.controller;

import com.study.reactor.config.Persion;
import com.study.reactor.config.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yuantongqin
 * desc:
 * 2020-11-06
 */
@RestController
public class TestController {

    @Autowired(required = false)
    Persion persion;

    @Autowired(required = false)
    User user;



    @GetMapping("/hello")
    public String aa(){
        int a = 10;
        String b = persion.name;
        return ""+b;
    }
}
